package com.example.book.service;

import cn.hutool.core.bean.BeanUtil;
import com.example.book.dto.SysLogininfor;
import com.example.book.mapper.SysLogininforMapper;
import com.example.book.vo.SysLogininforVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 绿松石
 * @version V1.0
 * @Title SysLogininforServiceImpl
 * @Description
 * @date 2022年05月16日 10:30
 * @since V1.0
 */
@Service
public class SysLogininforService {

    @Autowired
    private SysLogininforMapper sysLogininforMapper;

    /**
     * 插入日记表
     * @return
     */
    public void insertSysLogininfor(SysLogininforVo sysLogininforVo){
        SysLogininfor sysLogininfor=new SysLogininfor();
        BeanUtil.copyProperties(sysLogininforVo,sysLogininfor);
        sysLogininforMapper.insert(sysLogininfor);
    }
}
